cat coverage.wig | grep $1 > $1.wig
cat accepted_hits.sam |\
grep -P '[0-9][0-9]*M[0-9][0-9]*N[0-9][0-9]*M' | grep $1 > $1.sam


